package com.foreveross.proxyip.infra.db.mongo;

import java.util.List;

import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;


/**
 * mongo 仓储接口
 * 
 * @author fb 
 */
public interface IMongoRepository {
	
	void createCollection(String collection, DBObject options);
	
	<T> void save(T data);
	
	<T> void save(List<T> datas);
	
	<T> List<DBObject> query(Class<T> clazz, BasicDBObject query);
}
